{include file='user/base/header' /}
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>编辑用户-{$user.name}</h5>
            </div>
            <div class="ibox-content">
                <form method="post" action="user_edit.html?Id={$user.Id}" class="form-horizontal" id="valid_form">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">用户编号:</label>
                        <div class="col-sm-10">
                            <input type="text" id="username" placeholder="请输入编号" value="{$user.uid}" name="uid" class="form-control">
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">用户名<small>(姓名)</small>:</label>
                        <div class="col-sm-10">
                            <input type="text" id="user" placeholder="请输入用户名" name="name" value="{$user.name}" class="form-control">
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>

                    <div class="form-group">
                        <label class="col-sm-2 control-label">密码:</label>
                        <div class="col-sm-10">
                            <input type="password" id="password" value="{$user.pwd}" name="pwd" class="form-control">
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">性别:</label>

                        <div class="col-sm-10">
                            <select class="form-control m-b" name="sex">
                                <option value="1" {if $user.sex=='1'}selected{/if}>男</option>
                                <option value="0" {if $user.sex=='0'}selected{/if}>女</option>
                            </select>
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">权限:</label>
                        <div class="col-sm-10">
                            <select class="form-control m-b" name="authority">
                                <option value="4" {if $user.authority=='4'}selected{/if}>系统管理员</option>
                                <option value="3" {if $user.authority=='3'}selected{/if}>资产管理员</option>
                                <option value="2" {if $user.authority=='2'}selected{/if}>实验室主任</option>
                                <option value="1" {if $user.authority=='1'}selected{/if}>实验员</option>
                                <option value="0" {if $user.authority=='0'}selected{/if}>授权用户</option>
                            </select>
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">管理实验室:</label>
                        <div class="col-sm-10">
                            <input type="text" id="lab" placeholder="请输入实验室" name="auth_lab" value="{$user.auth_lab}" class="form-control">
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                    <div class="form-group">
                        <div class="col-sm-4 col-sm-offset-2">
                            <button class="btn btn-primary" type="submit">修改</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
{include file='user/base/footer' /}